# -*- coding: utf-8 -*-

from scrapy.selector import Selector
from scrapy.http import HtmlResponse

text = """
<html>
    <body>
        <h1>Hello World</h>
        <h1>Hello Scrapy</h>
        <b>Hello python</b>
        <ul>
            <li>C++</li>
            <li>Java</li>
            <li>Python</li>
        </ul>
    </body>
</html>
"""

if __name__ == "__main__":
    response = HtmlResponse(url='http://www.example.com', body=text, encoding='utf-8')
    selector = Selector(response=response)

    pass